
#include <iostream>
#include <string>
using namespace std;

const int SIZE = 5;
void dispaly(const string sa[], int n);
int main(int argc, char const *argv[])
{
	string list[SIZE];
	cout << "enter your " <<SIZE <<" message\n" ;
	for (int i = 0; i < SIZE; ++i)
	{
		cout << i+1<<" : ";
		getline(cin,list[i]);
	}
	cout << " your list: \n";
	dispaly(list,SIZE);
	return 0;
}
void dispaly(const string sa[],int n)
{
	for (int i = 0; i < n; ++i)
	{
		/* code */
		cout << i +1 <<" : " << sa[i]<<"\n" ;
	}
}